//
//  XYNavigationController.swift
//  EastCalendar
//
//  Created by Levi on 2020/5/11.
//  Copyright © 2020 East. All rights reserved.
//

import UIKit

open class XYNavigationController: UINavigationController {
    open override var childForStatusBarStyle: UIViewController?{
        return topViewController
    }
    
    open override var childForStatusBarHidden: UIViewController?{
        return topViewController
    }
    
    public override init(rootViewController: UIViewController) {
        super.init(rootViewController: rootViewController)
        navigationBar.isHidden = true
    }
    
    required public init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        fatalError("init(coder:) has not been implemented")
    }
    
    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
    }
}
